package net.gpai.logger

/**
 * expect关键字用于表示kmp多平台中某个方法的预期类型,具体对应的actual在不同的平台自己去实现
 */
expect fun logger(name: String): KmpLogger

/**
 * 统一的接口声明
 */
interface KmpLogger {
    fun debug(msg: String, vararg param: Any?)
    fun info (msg: String, vararg param: Any?)
    fun warn (msg: String, vararg param: Any?)
    fun error(msg: String, vararg param: Any?)
    fun error(msg: String, t: Throwable?, vararg param: Any?)
}